
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.CureMedicine;
import cn.edu.scau.cmi.hombio.domain.CureTaskMedicine;
import cn.edu.scau.cmi.hombio.domain.FodderType;
import cn.edu.scau.cmi.hombio.domain.PreventionType;
import cn.edu.scau.cmi.hombio.domain.Unit;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Unit entities
 * 
 */
public interface UnitService {

	/**
	* Return all Unit entity
	* 
	 */
	public List<Unit> findAllUnits(Integer startResult, Integer maxRows);

	/**
	* Delete an existing PreventionType entity
	* 
	 */
	public Unit deleteUnitPreventionTypesForReportUnitId(Integer unit_id, Integer related_preventiontypesforreportunitid_id);

	/**
	* Delete an existing PreventionType entity
	* 
	 */
	public Unit deleteUnitPreventionTypesForUnitId(Integer unit_id_1, Integer related_preventiontypesforunitid_id);

	/**
	* Load an existing Unit entity
	* 
	 */
	public Set<Unit> loadUnits();

	/**
	* Delete an existing FodderType entity
	* 
	 */
	public Unit deleteUnitFodderTypes(Integer unit_id_2, Integer related_foddertypes_id);

	/**
	* Save an existing Unit entity
	* 
	 */
	public void saveUnit(Unit unit);

	/**
	* Save an existing CureTaskMedicine entity
	* 
	 */
	public Unit saveUnitCureTaskMedicines(Integer id, CureTaskMedicine related_curetaskmedicines);

	/**
	* Delete an existing CureTaskMedicine entity
	* 
	 */
	public Unit deleteUnitCureTaskMedicines(Integer unit_id_3, Integer related_curetaskmedicines_id);

	/**
	 */
	public Unit findUnitByPrimaryKey(Integer id_1);

	/**
	* Save an existing CureMedicine entity
	* 
	 */
	public Unit saveUnitCureMedicines(Integer id_2, CureMedicine related_curemedicines);

	/**
	* Save an existing FodderType entity
	* 
	 */
	public Unit saveUnitFodderTypes(Integer id_3, FodderType related_foddertypes);

	/**
	* Save an existing PreventionType entity
	* 
	 */
	public Unit saveUnitPreventionTypesForUnitId(Integer id_4, PreventionType related_preventiontypesforunitid);

	/**
	* Delete an existing CureMedicine entity
	* 
	 */
	public Unit deleteUnitCureMedicines(Integer unit_id_4, Integer related_curemedicines_id);

	/**
	* Delete an existing Unit entity
	* 
	 */
	public void deleteUnit(Unit unit_1);

	/**
	* Return a count of all Unit entity
	* 
	 */
	public Integer countUnits();

	/**
	* Save an existing PreventionType entity
	* 
	 */
	public Unit saveUnitPreventionTypesForReportUnitId(Integer id_5, PreventionType related_preventiontypesforreportunitid);
}